<%--
*
* 作者： Sky
*
* 描述： 获取树的JSON数据
*
--%>
<%@ page language="java" import="java.util.*"
	pageEncoding="UTF-8"%>
<jsp:directive.page import="com.sky.common.string.StringUtils"/>
<jsp:directive.page import="com.toncen.samepms.util.DhtmlxTreeUtils"/>
<%
		String type=request.getParameter("type");
		String level=request.getParameter("level");
		String rootIds=request.getParameter("rootIds");
		String excludeIds=request.getParameter("excludeIds");
		System.out.println("type:"+type+"\tlevel:"+level+"\trootIds:"+rootIds+"\texcludeIds:"+excludeIds);
		if(StringUtils.isEmpty(level)){
		  level="1";
		}
		String jsonTree=DhtmlxTreeUtils.getJSONString(type,Integer.parseInt(level),rootIds,excludeIds);
	    out.println(jsonTree);
	    System.out.println(jsonTree);
%>
